package com.javaweb.model.upload;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.javaweb.model.Role;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * @desc:
 * @author: Ping
 * @date: 2024/11/20 19:26
 */
@Data
@Setter
@Getter
@EqualsAndHashCode
public class UserUpload {

        @ExcelProperty("用户ID")
        private String userId ;
        @NotBlank
        @ExcelProperty("用户名")
        private String name ;
        @NotBlank
        @ExcelProperty("密码")
        private String password ;
        @ExcelIgnore
        private String age ;
        @ExcelProperty("性别")
        private String gender ;
        @ExcelProperty("盐")
        private String salt ;
        @ExcelProperty("创建时间")
        @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
        private Date createTime ;
        @ExcelIgnore
        private List<Role> roles ;
        private String score ;
        private String status ;
        @ExcelProperty("邮件")
        private String email ;






}
